package com.coco.seck.mapper;

import com.coco.seck.pojo.TbSeckillGoods;
import com.coco.seck.pojo.TbSeckillOrder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
 *
 * @author HanSama
 * @date 2021/7/19 10:48
 */
@Mapper
public interface SeckillOrderMapper {

    /**
     * 添加订单
     * @author HanSama
     * @date 2021/7/19 10:46
     * @param seckillOrder
     */
    void addOrder(TbSeckillOrder seckillOrder);

    /**
     * 修改订单状态
     * @author HanSama
     * @date 2021/7/19 10:46
     * @param parseLong
     * @param status
     */
    void updateStatus(@Param("id") long parseLong, @Param("status") Integer status);

    Long findSeckillIdById(long id);


    TbSeckillOrder findOneById(long id);
}
